Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal applicableType As Type, _ ByVal propertyName As String, _ ByVal isRequired As Boolean, _ ByVal displayName As String, _ Optional ByVal shouldTreatEmptyStringAsNull As Nullable(Of Boolean) _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim applicableType As Type Dim propertyName As String Dim isRequired As Boolean Dim displayName As String Dim shouldTreatEmptyStringAsNull As Nullable(Of Boolean) Dim instance As New PropertyValueVerifierArgs(applicableType, propertyName, isRequired, displayName, shouldTreatEmptyStringAsNull) |
C# | |
---|---|
public PropertyValueVerifierArgs( Type applicableType, string propertyName, bool isRequired, string displayName, Nullable<bool> shouldTreatEmptyStringAsNull ) |
C++/CLI | |
---|---|
public: PropertyValueVerifierArgs( Type^ applicableType, String^ propertyName, bool isRequired, String^ displayName, Nullable<bool> shouldTreatEmptyStringAsNull ) |
Parameters
- applicableType
- propertyName
- The property on the specified type to be validated.
- isRequired
- Whether the property name is required or may be left null.
- displayName
- A display name for the specified property.
- shouldTreatEmptyStringAsNull
- Whether to treat an empty string as a null for validation purposes..
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family